

module.exports = (filePath) => {
  let module = require.cache[filePath];

  if (module.parent) {
      module.parent.children.splice(module.parent.children.indexOf(module), 1);
  }
  require.cache[filePath] = null;
}